    <div class="navbar navbar-inverse">
        <div class="navbar-inner">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>

                    <a class="navbar-brand" href="/" style="font-size:30px;">极客头条</a>
                </div>
                <div class="navbar-collapse collapse">
                    <ul class="nav navbar-nav">
                        <li class="active"><a href="/">首页</a></li>
                       <% if (!user) { %>               
                        <li><a href="/login">登录</a></li>
                        <li><a href="reg">注册</a></li>
                        <% } else { %>
                        <!-- <li><a href="/u/user/personal">个人中心</a></li>-->
                        <li><a href="/logout">注销</a></li>
                        <% } %>
                    </ul>
                </div>
            </div>
        </div>
    </div>